package com.ruoyi.exen.common.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 上传文件常量
 * @author EMY2305005
 */
@Component
@ConfigurationProperties(prefix = "xsl.file")
public class FileConstant {

    /**
     * 服务器地址
     */
    private static String host;

    /**
     * 服务器端口
     */
    private static String port;



    /**
     * 8D 报告地址
     */
    public static final String DISCIPLINES = "8disciplines";


    /** 3D 文件地址 */
    public static final String  DISCIPLINES_THREE ="D3";
    public static final String THREE = DISCIPLINES + "/D3";

    /** 5D 文件地址 */
    public static final String  DISCIPLINES_FIVE ="D5";
    public static final String FIVE = DISCIPLINES + "/D5";

    /** 8D 文件地址 */
    public static final String  DISCIPLINES_EIGHT ="D8";
    public static final String EIGHT = DISCIPLINES +"/D8";

    /**
     * 8D 报告的图片地址
     */
    public static final String DISCIPLINES_IMAGE = DISCIPLINES + "/image";

    /** opl上传图片地址 */
    public static final String OPL_IMAGE = "opl/image";
    /** opl 佐证材料地址*/
    public static final String OPL_MATERIAL = "opl/material";

    /** APQP */
    public static final String APQP = "apqp";

    /** APQP 模板 */
    public static final String APQP_TEMPLE = "apqp/temple";

    public static String getHost(){
        return host;
    }

    public void setHost(String host){
        FileConstant.host = host;
    }


    public static String getPort(){
        return port;
    }

    public void setPort(String port){
        FileConstant.port = port;
    }
}
